class SplashModel {
  int duration;
  String url;
  String imgUrl;
  String title;

  SplashModel(
      {this.duration = 0, this.url = '', this.imgUrl = '', this.title = ''});

  SplashModel.fromJson(Map<String, dynamic> json)
      : duration = json['duration'],
        url = json['url'],
        title = json['title'],
        imgUrl = json['imgUrl'];

  Map<String, dynamic> toJson() => {
        'duration': duration,
        'url': url,
        'title': title,
        'imgUrl': imgUrl,
      };

  @override
  String toString() {
    StringBuffer sb = new StringBuffer('{');
    sb.write("\"duration\":\"$duration\"");
    sb.write(",\"url\":\"$url\"");
    sb.write(",\"title\":\"$title\"");
    sb.write(",\"imgUrl\":\"$imgUrl\"");
    sb.write('}');
    return sb.toString();
  }
}
